package net.test;
import java.text.SimpleDateFormat;
import java.util.Calendar;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
public class FooJob implements Job {
	 public void execute(JobExecutionContext arg0) throws JobExecutionException {
	       Calendar cal=Calendar.getInstance();
	        cal.add(Calendar.DAY_OF_YEAR,-0);
	        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
	        String nowtime=sdf.format(cal.getTime());
	        System.out.println("********Hello World..."+nowtime);   
	        System.out.println("*************************************");
	    }   
}
